import http from "./request"; //记得引入进来

class ReviewService extends http {
    constructor() {
        super();
        this.baseUrl = "/evaluation"
    }

    //   新增评论
    addComment(body) {
        return this.http({
            method: 'post',
            url: '/addComment',
            body,
            header: {
                "Content-Type": "application/json;charset=UTF-8",
            }
        }, {
            loading: true
        });
    }

    // 获取该老师评论
    getComment(body) {
        return this.http({
            method: 'get',
            url: '/getComment',
            body
        }, {
            loading: true
        });
    }


}

export default new ReviewService();